<%@ page language="java" contentType="text/html; charset=UTF-8" import="com.zd.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录页面</title>
<style>
  body, h1 {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }

  .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f7f7f7;
  }

  .login-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
  }

  h1 {
    text-align: center;
  }

  .form-input {
  margin:auto;
    margin-bottom: 20px;
  }

  .form-input input {
  
  margin-top:10px;
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
  }

  .form-input input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
  }

  .form-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .form-submit:hover {
    background-color: #0056b3;
  }
</style>
</head>
<body>

<div class="login-container">
<form action="AddChapterServlet" method="post">
 	 <div class="login-box">
	    <h1>添加章节</h1>
	    <div class="form-input">
	      <label for="chapterName">章节名:</label>
	      <input type="text" id="chapterName"  name="chapterName" required>
	    </div>

	        <div class="form-input">
	      <label for="novelId">小说id:</label>
	      <input type="text" id="novelId"  name="novelId" required>
	    </div>
		 <div class="form-input">
	      <label for="chapterContent">章节内容:</label>
	      	<textarea name="chapterContent" rows="4" cols="50"  style="background-color:#ccc"></textarea>
	    </div>
	    <input   class="form-submit" type="submit" value="添加">
	   
	  </div>
	  </form>
	</div>

</body>
</html>